Skip to content

Conversation

@jif-oai
Copy link
Collaborator

@jif-oai jif-oai commented Jan 9, 2026

No description provided.

@jif-oai jif-oai marked this pull request as draft January 9, 2026 18:57
@jif-oai
Copy link
Collaborator Author

jif-oai commented Jan 9, 2026

@codex review

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 48502af5a2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…igin

# Conflicts:
#	codex-rs/core/src/tools/handlers/view_image.rs
#	codex-rs/core/tests/suite/view_image.rs
@jif-oai
Copy link
Collaborator Author

jif-oai commented Jan 12, 2026

@codex review

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f41a982b03

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +164 to +168
if content
.iter()
.any(|item| matches!(item, ContentItem::InputImage { .. }))
{
return false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Treating any user image as definitive can abort tool errors

This logic returns false as soon as the current turn contains any user input_image, even if the invalid image that triggered InvalidImageRequest actually came from a tool output. Now that view_image emits an input_image as a function-call output, it’s possible to have both a valid user image and an invalid tool image in the same turn; in that case the error handler will misclassify the failure as “user‑injected,” emit an error event, and stop the turn instead of retrying with the tool image replaced. That’s a regression from the previous behavior where tool-originated invalid images would be recoverable.

Useful? React with 👍 / 👎.

@jif-oai jif-oai marked this pull request as ready for review January 12, 2026 19:05
@jif-oai jif-oai closed this Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants